package com.youlu.campus.admin.vote.dto;

import lombok.Data;
import org.springframework.data.mongodb.core.index.Indexed;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author : [dengbo]
 * @className : OrgTypeSaveDTO
 * @description : [投票组织信息保存]
 * @createTime : [2022/7/4 10:01]
 */
@Data
public class VoteOrgSaveDTO {
    private String id;
    @NotNull(message = "组织类型分类不能为空")
    private String orgTypeId;
    @NotBlank(message = "组织编码不能为空")
    private String orgCode;
    @NotBlank(message = "组织名称不能为空")
    private String orgName;
    @NotBlank(message = "组织头像不能为空")
    private String orgLogo;
    @NotBlank(message = "省份名称不能为空")
    private String province;
    @NotBlank(message = "省份编码不能为空")
    private String provinceCode;
    private String orgId;
}
